Package com.cisco.pt.ipc.sim.impl
Class CableImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.LinkImpl
com.cisco.pt.ipc.sim.impl.CableImpl
Information provided by the PKI file:
\class Cable
\brief Cable is the generic cable class with two endpoints.
\example network().getDevice("Router0").getPort("FastEthernet0/0").getLink()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionCableImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Methods inherited from class com.cisco.pt.ipc.sim.impl.LinkImpl
getConnectionTypeMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Link
getConnectionType
-
Constructor Details
-
CableImpl
public CableImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getPort1
Information provided by the PKI file:
\brief Returns the port on the first end of the cable. \return Port, the port on the first end of the cable. -
getPort2
Information provided by the PKI file:
\brief Returns the port on the second end of the cable. \return Port, the port on the second end of the cable. -
getOtherPort
Information provided by the PKI file:
\brief Returns the other port based on the specified port on one side of the cable. \param deviceName, name of the device (not the IOS name) \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \return Port, value is the other port based on the specified port on one side of the cable.- Specified by:
getOtherPortin interfaceCable- Parameters:
deviceName- Takes in a parameter of deviceNameportName- Takes in a parameter of portName- Returns:
- Port Returns a Port
-